<?php
include_once('baseModeldto.php');
include_once($_SERVER['DOCUMENT_ROOT'] . '/smartrfid/model/rfidInfo.php');

include_once('rfidInfodto.php');

class itemInfodto extends BaseModeldto {
  public $id;
  public $identifier;
  public $statusNote;
  public $category;
  public $subCategory;
  public $creationDate;
  public $description;
  public $binLocation;
  public $rfidInfo;
  public $quantity;
  
  function resolveRelations() {
    $rfidInfo = new RfidInfo();
    $rfidInfo->loadByItemInfoId($this->id);
    $this->rfidInfo = new rfidInfodto($rfidInfo);
  }
}
